package com.ddz.fightthelandlord;

import android.graphics.Color;
import android.graphics.Point;

import com.ddz.implementation.Entity;
import com.ddz.implementation.Graphics;

public class Card extends Entity {

	Point mPosition = new Point(0, 0);
	int mCardValue = 0;
	Player mOwner = null;

	@Override
	public void init() {

	}

	@Override
	public void onUpdate(float deltaTime) {
	}

	@Override
	public void onPaint(float deltaTime, Graphics graphics) {
		graphics.drawRect(mPosition, 20, 50, Color.rgb(255, 128, 100));
	}
	
	@Override
	public void release() {
		mCardValue = 0;
	}
	
	public void assignPlayer(Player _owner) {
		mOwner = _owner;
	}

	public void setCardValue(int _cardValue) {
		mCardValue = _cardValue;
	}

	public void setPosition(Point _position) {
		mPosition = _position;
	}

	public int getCardValue() {
		return mCardValue;
	}

	public Point getPosition() {
		return mPosition;
	}
}

	
